package com.xinqi.modules.databank.v2.convert;


import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.databank.dto.req.*;
import com.xinqi.modules.databank.dto.rsp.CourseResourceBaseResultDTO;
import com.xinqi.modules.databank.dto.rsp.ResourceResponseDTO;
import com.xinqi.modules.databank.v2.domain.CourseResourceEntity;
import org.mapstruct.Mapper;

/**
 * 课程资料库主表转换
 *
 * @author: system
 * @date: 2023/03/14
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseResourceConvert {

    public abstract CourseResourceEntity create(CourseResourceCreateDTO s);

    public abstract CourseResourceEntity update(CourseResourceUpdateDTO s);

    public abstract CourseResourceCreateDTO dataCreate(CourseResourceDataCreateDTO s);

    public abstract CourseResourceCreateDTO videoCreate(CourseResourceVideoCreateDTO s);

    public abstract CourseResourceEntity newEntity(CourseResourceEntity s);

    public abstract CourseResourceEntity dataUpdate(CourseResourceDataUpdateDTO s);

    public abstract CourseResourceEntity videoUpdate(CourseResourceVideoUpdateDTO s);

    public abstract CourseResourceBaseResultDTO convert(CourseResourceEntity s);

}
